package com.rock.code.common.util;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Iterator;
import java.util.List;

/**
 * @author zhangli
 * @version V1.0
 * @create 2019-02-26 18:02
 **/
@Component
public class Server {

    @Autowired
    private List<ServerStart> serverStartList;

    public Server() {
    }

    public void start() {
        Iterator var2 = this.serverStartList.iterator();

        while(var2.hasNext()) {
            ServerStart serverStart = (ServerStart)var2.next();
            serverStart.start();
        }

    }

    public List<ServerStart> getServerStartList() {
        return this.serverStartList;
    }

    public void setServerStartList(List<ServerStart> serverStartList) {
        this.serverStartList = serverStartList;
    }


}
